<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/pages/home.xhtml">
	<ui:define name="conteudo">
		<p:tabMenu activeIndex="4">
			<p:menuitem value="Empréstimo" url="emprestimo.jsf" />
			<p:menuitem value="Leitor" url="leitor.jsf" />
			<p:menuitem value="Livro" url="livro.jsf" />
			<p:menuitem value="Autor" url="autor.jsf" />
			<p:menuitem value="Editora" url="editora.jsf" />
			<p:menuitem value="Classificação" url="classificacao.jsf" />
		</p:tabMenu>
		<h:form>
			<h:panelGrid id="painel" columns="3" cellpadding="4">
				<h:outputLabel value="Nome" />
				<p:inputText value="#{MBEditora.beanEditora.ediNome}" id="nome"
					required="true" requiredMessage="Campo obrigatório." />
				<p:message for="nome" />
				<h:outputLabel value="País" />
				<p:inputText value="#{MBEditora.beanEditora.ediPais}" id="pais"
					required="true" requiredMessage="Campo obrigatório." />
				<p:message for="pais" />
				<p:commandButton value="Salvar" action="#{MBEditora.alterar()}"
					update="painel" />
				<p:commandButton value="Cancelar" action="editora" immediate="true" />
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</html>